﻿<Window x:Class="SearchWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" SizeToContent="WidthAndHeight" WindowStyle="None" AllowsTransparency="True" Icon="/Horizon.HMS;component/Images/POSIcon.ico"
    xmlns:local="clr-namespace:Horizon.HMS" WindowStartupLocation="CenterScreen" Background="CornflowerBlue" 
    xmlns:lib="clr-namespace:HMSLibrary;assembly=HMSLibrary" 
    xmlns:extToolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit/extended" 
    xmlns:themes="clr-namespace:DataGridThemes;assembly=DataGridThemes"
        xmlns:dg="clr-namespace:Jib.WPF.Controls.DataGrid;assembly=Jib.WPF.Controls"
    xmlns:my="http://schemas.microsoft.com/wpf/2008/toolkit" Width="800" Height="500">
    <Window.CommandBindings>
        <CommandBinding Command="ApplicationCommands.Find"	Executed="CommandBinding_Executed"/>
    </Window.CommandBindings>
    <Window.Resources>
        <!--<ResourceDictionary Source="/DataGridThemes;component/ExpressionLight.xaml" />-->
        <!--<ResourceDictionary Source="/DataGridThemes;component/ExpressionDark.xaml" />-->
        <ResourceDictionary Source="/DataGridThemes;component/WhistlerBlue.xaml" />
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="30"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
            <ColumnDefinition/>
            <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>
        <TextBlock Margin="20,2" FontSize="16" FontWeight="SemiBold">
             <Run Text="HMS(" />
            <Run Text="Your management partner..." FontSize="10" FontStyle="Italic"/>
            <Run Text=")" />
            <Run Text=" :: "/>
            <Run Name="ModuleNameRun"/>
        </TextBlock>
        <Button Grid.Column="2" Style="{DynamicResource CloseButtonStyle}" Width="11.195" Content="Button" x:Name="CloseButton" Cursor="Hand" HorizontalAlignment="Right" Margin="0,5.583,7.468,0" VerticalAlignment="Top" Height="12.77"/>
        <Button Grid.Column="2" Style="{DynamicResource MinimizeButtonStyle}" Width="12.402" Content="Button" x:Name="MinimizeButton" Cursor="Hand" HorizontalAlignment="Right" Margin="0,4.733,24.606,0" VerticalAlignment="Top" Height="13.537"/>
        <lib:SearchBox x:Name="Ctrl" HorizontalAlignment="Right" Grid.Column="1" Margin="10,5"
					Width="249" Height="22" Mode="{Binding SelectedValue.Content, ElementName=SearchMode}"
					Prompt="Search text" ToolTip="Type to search the current view">
                    <lib:SearchBox.ContextMenu>
                        <ContextMenu>
                            <MenuItem Header="Option 1" IsCheckable="True"/>
                            <MenuItem Header="Option 2" IsCheckable="True"/>
                        </ContextMenu>
                    </lib:SearchBox.ContextMenu>
                    <lib:SearchBox.LayoutTransform>
                        <ScaleTransform ScaleX="{Binding Value, ElementName=Scaler}" 
																						ScaleY="{Binding Value, ElementName=Scaler}"/>
                    </lib:SearchBox.LayoutTransform>
                </lib:SearchBox>
        <extToolkit:BusyIndicator Grid.Row="2" Name="BusyIndicator1" Grid.ColumnSpan="3"/>
        <ScrollViewer Height="380" Width="760" Grid.ColumnSpan="3" Grid.Row="2" Margin="10">
            <dg:JibGrid Name="SearchDataGrid">
                <dg:JibGrid.Columns>
                    
                    <DataGridTemplateColumn/>
                </dg:JibGrid.Columns>
            </dg:JibGrid>
            <!--<my:DataGrid Grid.Row="2" IsReadOnly="True" Grid.ColumnSpan="3" Name="SearchDataGrid" Margin="10" VerticalAlignment="Top" AutoGenerateColumns="True" AlternatingRowBackground="#FF12EBEB" />-->
        </ScrollViewer>
    </Grid>
</Window>
